<?php

namespace app\index\controller;


use think\Controller;
use think\Db;

class Article extends Controller
{
    public function index(){
        $artList=Db::name('article')->select();
        $this->assign('artList',$artList);
        return $this->fetch();
    }
    public function read(){
        $artId=input('param.art_id');
        $art=Db::name('article')->find($artId);
        $this->assign('art',$art);
        return $this->fetch();
    }
}
